home *** CD-ROM | disk | FTP | other *** search
- .REMARK
- Demo frameset - browser
- Copyright (c) 1989 N.G.Taylor
- .CHECK +fa
- Check both menu types
-
- .HEADER
- ~MFile~E│~MOptions~E│~MHelp~E│~AHISTORY $6~C33~Pb@B~E│ $1 - $2
- ═════╧═══════╧════╧═════════════╧═════════════════════════════════════════════
- .
- .FOOTER
- ~L22
- ═══════════════════════════════════════════════════════════════════════════════
- F1 ~AHELP~PMHelp~E F2 ~ACONTENTS~PA@C~E F3/4 ~ABACKTRACK~PB~E F5 ~ANOTEPAD~PA@R~E F6 ~ASEARCH~PA@X?Search string~E F7 ~ATYPE FILE~PT~E F10 ~AQUIT~PQ~E
- .
-
- .MENU File
- Directory |Y@d*.*
- Change dir. |C@L*.
- Browse dir. |SBrowse
- Quit |Q
- .
-
- .MENU Options
- Setup Colours |SColours
- Show error text |Sperror
- Create notepad |O01;pO.K.
- .
-
- .MENU Help
- Information |NInfo
- Selecting |NSelecting
- Key mappings|NHelp
- Funct. keys |NFkeys
- Notepad |NNotepad
- Colour key |NKey
- .
-
- .NOTE Info
- - $9 -
- Frame: $1
- Title: $2
- File : $3
- Date : $4
- Time : $5
- ~ABacktrack ~O2 ~PO2A;NInfo~E with $6 entries
- ~AAutoref ~O4 ~PO4A;NInfo~E
- ~AMenu symbols ~O1 ~PO1A;NInfo~E
- Error status $? ~C32~AClear~PYah;NInfo~E
- .
-
- .NOTE Key
- A ~Mmenu~E gives a menu.
- A ~Nnote~E displays a note.
- A ~Freference~E allows a
- new frame to be selected.
- An ~Aaction~E does some
- other action.
- An ~Iinput field~E permits some
- value to be entered.
- .
-
- .NOTE Notepad
- The notepad allows you to store a
- reference that you may want to use
- later. The INS key adds the reference
- pointed at to the notepad, or the
- current frame if not pointing at any.
- The DEL key deletes a reference.
- The NOTEPAD option on the main menu
- allows you to select from the notepad
- and delete unwanted references.
- .
-
- .NOTE Selecting
- Press LEFT button to select item
- Press RIGHT mousebutton to select
- control menu. This gives :-
- HOME FRAME CONTENTS
- BACKTRACK SELECT BACK
- NOTEPAD SEARCH
- TYPE FILE DO ACTION
- DOS SHELL EXIT TO DOS
- .
-
- .NOTE Browser
- This is a sample directory browser
-
- Select directories to move around.
-
- Select text files to type them.
- .
-
- .SCRIPT Browse
- NBrowser
- Lpd;Y@L*.*
- jspd
- J$>
- A@Mextns[$>];Jpd
- L
- L.
- A@Mdirectory;Jpd
- LTXT
- LBAT
- LC
- A@MText File;Jpd
- LEXE
- LCOM
- Fexec
- .
-
- Ignore binary files
- .MENU extns
- OBJ|L
- LIB|L
- DBF|L
- SYS|L
- DAT|L
- *|T$<
- .
-
- .MENU Directory
- Change to|C$<
- List |DDIR/W $<
- .
-
- .MENU Text File
- Type |T$<
- Edit |DCSE $<
- .
-
- .NOTE Help
- s ~NSelecting~Ks~E
- i ~NInfo~Ki~E
- f ~NFunction key layout~PNFkeys~Kf~E
- m ~ANotepad~PA@R~Km~E
- g ~AGo to frame~PF?Which~Kg~E
- b ~ABrowse~PSBrowse~Kb~E
- n ~fNext frame~PF+~Kn~E
- c ~MConfigure~Km~E
- q ~AQuit~PQ~Kq~E
- .
-
- .CHECK +fa
-
- .SCRIPT Colours
- Y?Press escape to abort at any time. (Return to continue)
- pChoose Item to change colour of
- V[@MItem
- pChoose Foreground Colour
- V\@MForeground
- pChoose Background Colour
- V]@MBackground
- O$[$\$]
- y
- .
- .CHECK -fax
- .MENU Item
- Action ref |A
- Menu Choice |C
- Title |D
- Frame ref |F
- Menu heading|H
- Note heading|J
- Note text |K
- Menu ref |M
- Note ref |N
- Menu seln |O
- Pop message |P
- Invisible |Q
- Request |R
- Script ref |S
- Frame text |T
- .
-
- .MENU Foreground
- Black |K
- Blue |B
- Green |G
- Cyan |C
- Red |R
- Magenta |M
- Yellow |Y
- White |W
- Grey |k
- Light blue |b
- Light green |g
- Light cyan |c
- Light red |r
- Light magen |m
- Light yellow|y
- Bright white|w
- .
-
- .MENU Background
- Black |K
- Blue |B
- Green |G
- Cyan |C
- Red |R
- Magenta |M
- Yellow |Y
- White |W
- .
-
- .MENU Error text
- 1 - Operation cancelled
- 2 - Menu no choice
- 3 - End of file
- 4 - Cant open file
- 5 - File not open
- 6 - File open
- 7 - File changed
- 8 - At start of backtrack
- 9 - Divide by 0
- 10 - Value not expected
- 11 - Value expected
- 12 - Undefined opcode
- 13 - Unmatched parenthesis
- 14 - Syntax error
- 15 - Script not available
- 16 - Menu not available
- 17 - Note not available
- 18 - Frame not available
- 19 - Key not defined
- 20 - Invalid key code
- 21 - Local ref can't be noted
- 22 - Not at reference
- 23 - Key not mapped
- 24 - No action or disabled
- 25 - Invalid action code
- 26 - No command
- 27 - Env var not present
- 28 - Invalid dynamic menu
- 29 - Line too wide for screen
- 30 - String too long
- 31 - Too many lines in frame
- 32 - Max script reached
- 33 - Maximum menu size reached
- .
- .CHECK +fax
-
- .SCRIPT perror
- p@MError text($?)
- .
-
- .NOTE Fkeys
- F1 Help F2 Browse
- F3 Backtrack F4 Select back
- F5 Notepad actions F6 Search text
- F7 Type file F8 Do action
- F9 DOS Shell F10 Quit
- .
-
- .SCRIPT SETUP
- O#
- K#hNHelp
- K#qQ
- K#iNInfo
- K#fNFkeys
- K#gF?Name of frame
- K#sNSelecting
- K#bSBrowse
- K#nF+
- K#cMConfigure
- K#mA@R
- KF1MHelp
- KM1HELP
- Vt°
- Vd$
- Vsfirst
- Vxdog
- VZ$d?
- V`~APress space bar to continue~Pf+~K ~E
- VrY?Press escape to abort at any time. (Return to continue)
- .
- .FRAME Browser
- .TITLE DOS directory structure browser
-
- MSDOS directory structure browser.
-
- [b] Press This to browse -> ~SBrowse~E
-
- Key 'b' is permanently mapped to Browse.
-
- [1] This hyperfile contains a number of ~Fuseful items~K1~E for
- authors to include in their own hyperfiles
-
- [2] Also some handy ~FGadgets~K2~E are provided for authors
- .
- .FRAME exec
- .TITLE Execute command
-
- Command line entry. Enter parameters as required, ESCAPE to cancel.
- Reselect any parameter to modify that and subsequent parameters.
- Press = to execute or # to cancel and return to browser.
-
- $< ~I$A~W10~PVA%s;VB;VC;VD;I~E~Q ~I$B~W10~PVB%s;VC;VD;I~E ~I$C~W10~PVC%s;VD;I~E ~I$D~W10~PVD%s;y~E
-
- Select action when ready, or press key.
-
- [=] ~AExecute operation~PD $< $A $B $C $D~K=~E
-
- [#] ~ACancel and return to browser~PFBrowser;SBrowse~K#~E
- .
- .REMARK
- The Input fields above show how to arrange it so that a variable can be
- input and displayed, and how other fields can be set as required.
- .
- .FRAME useful items
- .TITLE items for authors to use
- A number of useful items are provided in this hyperfile.
-
- An error number menu provides a useful means of getting the
- text associated with an error status. The action
-
- p@MError text($?)
-
- Will display the error text associated with the last error.
-
- A set of items permit the configuration of colour schemes. These are
- driven by the script 'Colours', which prompts for the scheme to
- configure, then the foreground and background colours for that scheme.
- The script demonstrates some useful effects.
-
- The .HEADER demonstrates how a menu bar of sorts can be set up.
- The .FOOTER shows a function key help line with selectable references
-
- The Info note shows how toggle can be used for options.
- .
- .CHECK gadget accessories
- .FRAME Gadgets
- .TITLE Useful accessories for hyperfiles
-
- [1] ~nThe confirm box~PVffeed $x;p@nConfirm~K1~E
-
- [2] The selector - ~n$x~PVx@mselector;y~K2~E
-
- [3] The stepper - ~n$s~PVs@mstepper[$s];y~K3~E
-
- [4] The dialogue box - ~nName input~Pndialogue;y~K4~E {$n}
-
- [5] ~FDescription~K5~E - Details about gadgets
- .
- .MENU selector
- dog
- cat
- hamster
- goldfish
- rabbit
- mouse
- .
- .MENU stepper
- first|second
- second|third
- third|fourth
- fourth|fifth
- fifth|sixth
- sixth|seventh
- seventh|eighth
- eighth|ninth
- ninth|first
- .
- .NOTE Confirm
- $f
- ┌─────────┐ ┌──────────┐
- │ ~ACONFIRM~PY~E │ │ ~ACANCEL~PN~E │
- └─────────┘ └──────────┘
- .
- .NOTE dialogue
-
- Enter your name here
-
- Name: ~I$n~W20~PVn%s;y~E
-
- .
- .FRAME description
- .TITLE details about gadgets
-
- The confirm box is useful for confirming an action before it
- is executed, in cases where some irreversible action is to
- take place. e.g. a file is to be deleted. The confirm box can
- be extended to any number of options.
-
- The selector presents a menu from which a new value for a
- variable can be chosen. The variable can be used as the
- reference text to show the current value.
-
- The stepper is similar to the selector, only allows the set
- of values to be stepped through one at a time.
-
- The dialogue box is used to input a string from the user. It
- is similar to the prompted input action, but it permits extra
- information to be displayed around the input field, such as
- the values of other variables
- .
-